package com.yxuan.springboot.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author zchao
 *    NoticRecord实体类
 * @date 2023-06-01 14:59:33
 */
@Data
@ApiModel(description = "")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class NoticRecord implements Serializable{

	  private static final long serialVersionUID = 1L;
	
	  @ApiModelProperty(value = "消息记录id")
	  private Integer id;
	  @ApiModelProperty(value = "用户id")
	  private String userId;
	  @ApiModelProperty(value = "标题")
	  private String title;
	  @ApiModelProperty(value = "图片地址")
	  private String picAddress;
      //发送时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date sendTime;
	  @ApiModelProperty(value = "发送方（系统消息）")
	  private String sender;
	  @ApiModelProperty(value = "发送内容")
	  private String sendContent;
	  @ApiModelProperty(value = "消息状态（0：未读；1：已读）")
	  private String status;
      //读取时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date readTime;
	  @ApiModelProperty(value = "逻辑删除（0：正常；1：删除）")
	  private String logicDeletion;


}
